 <script th:inline="javascript">
/*<![CDATA[*/

    function del(event,element){
        event.preventDefault();
          bootbox.confirm("您确定删除吗?", function(result) {
        if(result){
            var _id = $(element).attr("href");
            BOSS.remoteCall('system/deliverarea/delete',$('#deliverarea_grid'),{id:_id});
            }
        }); 
    }
    
/*]]>*/
</script>
<table layout:fragment="deliverarea_table" class="table table-striped table-bordered  table-advance table-hover" id="deliverarea_grid">
    <thead>
        <tr>
            <th>编号</th>
            <th>区域名称</th>
            <th>区域描述</th>
            <th>所属区域</th>
            <th>过滤区域</th>
            <th>操作</th>
        </tr>
    </thead>    
    <tbody>
        <tr class="odd gradeX" th:each="data : ${deliverAreaList}">
            <td class="col-md-1" th:text="${data.id}">
            </td>
            <td class="col-md-1" th:text="${data.name}">
            </td>
            <td class="col-md-1" th:text="${data.description}">
            </td>
            <td class="col-md-3">
                <span class="tagsinput border-striped">
                    <span th:each="region : ${data.regionList}" class='badge badge-success'>
                            <span th:text="${region.name}"></span>
                    </span>
                </span>
            </td>
            <td class="col-md-3">
                <span class="tagsinput border-striped">
                    <span th:each="filterRegion : ${data.filterViews}" class='badge badge-danger'>
                            <span th:text="${filterRegion.key}"></span>
                    </span>
                </span>
            </td>
            <td class="col-md-3">
                <a th:attr="id=${'link_edit_'+dataStat.index}" th:href="@{'/system/deliverarea/edit/'+${data.id}}" class="btn default btn-xs purple"><i class="fa fa-edit"></i>编辑</a>
                <a th:attr="id=${'link_delete_'+dataStat.index}" th:href="${data.id}" class="btn default btn-xs purple" onclick="del(event,this)"><i class="fa fa-minus"></i>移除</a>
            </td>         
        </tr>
     </tbody>
</table>



